package com.zlc.common.common.entity;

import lombok.Data;

@Data
public class PageRequest {
    private int pageNum;
    private int pageSize;

    public int getPageNum() {
        return pageNum == 0 ? 1 : pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize == 0 ? 10 : pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
}
